package org.lanqiao.music.system.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.List;

@Data
public class Comment {
    private Integer id;
    private String content;
    private String userName;
    private Integer userId;
    private Integer musicId;
    private Integer up;
    private Integer pid;
    private Integer replyId;
    private List<Comment> children;
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime = LocalDateTime.now((ZoneId.of("Asia/Shanghai"))).toString();
}
